package com.xiaoxu.scala_base.code._4_Scala隐式转换.MenToSupperMan


import com.xiaoxu.scala_base.code._4_Scala隐式转换.ImplicitAspect._
object MenToSupperMan {

  def main(args: Array[String]): Unit = {

    //定义隐式转换函数即可
    //implicit def man2superman(man:Man):Superman = new Superman(man.name)
    val man = new Man("xiaoxu")
    man.fly()
  }

}
